<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>模板语法</title>
	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
	<div id="app">
		<div>{{name1}}</div>
		<div v-text="name + 'xx'"></div>	//innerTxt
		<div v-html="name1"></div>	//innerHtml
	</div>
	<script>
		var app = new Vue({
			el: "#app",
			data: {
				name: "xc",
				name1: "<h1>xc</h1>"
			}
		})
	</script>
</body>
</html>